hook::add message bot:aforizm 85
set opt(aforizm) 1
proc bot:aforizm {from type body} {
global af
if {[cmd "$body" aforizm]} {
	
		set answ [lindex $af [randomnum [llength $af]]]
		putlog $answ
		if {$type=="groupchat"} {
			gm "$from" "$answ"
			return stop
		} elseif {$type=="chat"} {
			pm "$from" "$answ"
			return stop
		} else {return stop}
	}
}
